CGL.gl.shape = {
	drawRectangle : function(x, y, width, height, color) {
		var gl = CGL.canvas.getContext();
		
		gl.uniform4f(CGL.gl.colorLocation, color[0], color[1], color[2], color[3]);
		gl.uniform1i(CGL.gl.noTextureLocation, 1);
		
		var vertexBuffer = gl.createBuffer();
		gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer);
		gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([
		                                                 x, y,
		                                                 x, y + height,
		                                                 x + width, y,
		                                                 x + width, y + height
		                                                 ]), gl.STATIC_DRAW);
		gl.enableVertexAttribArray(CGL.gl.positionLocation);
		gl.vertexAttribPointer(CGL.gl.positionLocation, 2, gl.FLOAT, false, 0, 0);
		
		gl.drawArrays(gl.TRIANGLE_STRIP, 0, 4);
	}	
};